package com.example.qiniutest.aliyun.oss.bean;

import com.aliyun.oss.ClientBuilderConfiguration;
import com.aliyun.oss.ClientConfiguration;
import com.aliyun.oss.common.comm.Protocol;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class Beans {


    @Bean
    public ClientBuilderConfiguration clientBuilderConfiguration(){
        ClientBuilderConfiguration config = new ClientBuilderConfiguration();
        config.setProtocol(Protocol.HTTPS);
        return config;
    }
}
